<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Document</title>
</head>
<body>

<script>
    window.alert("弹窗");
    console.log(window.navigator.userAgent);  // UA信息
</script>
</body>
</html>